package com.chen10.cattle.mapper;

import com.chen10.cattle.model.pojo.CattleWeight;
import org.apache.ibatis.annotations.Mapper;

import java.math.BigDecimal;
import java.util.List;

/**
* @author Administrator
* @description 针对表【cattle_weight】的数据库操作Mapper
* @createDate 2025-03-16 18:06:29
* @Entity com.chen10.cattle.model.pojo.CattleWeight
*/
@Mapper
public interface CattleWeightMapper {
    int insert(CattleWeight weight);
    List<CattleWeight> selectWeightHistory(Long cattleId);
    CattleWeight selectLatestWeight(Long cattleId);
    BigDecimal calculateWeightGain(Long cattleId);
}




